package com.hqyj.Service;
import com.hqyj.Dao.LoginDao;
import com.hqyj.Pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
@Service
//接收控制层的请求 传递需求到Dao层
public class LoginService {
    //注入logindao对象
    @Autowired
    LoginDao LoginDao;
    public List<User> queryByusername(String username){
        return LoginDao.queryByusername(username);
    }
    public void InsertUser(User users){
        LoginDao.InsertUser(users);
    }
    public void setqiandao(User users) {
        LoginDao.setqiandao(users);
    }
}